package com.zhugang.week14.programme.proxy;

/**
 * @program algorithms
 * @description: Order
 * @author: chanzhugang
 * @create: 2022/09/23 01:08
 */
public class Order implements IOrder {

    int state = 0;

    @Override
    public void pay() throws InterruptedException {
        Thread.sleep(50);
        this.state = 1;
    }

    @Override
    public void show() {
        System.out.println("order status:" + this.state);
    }
}